package com.example.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
//指定mapper的位置，mapper里就可以不加@Mapper
@MapperScan("com.example.boot.mapper")
@ServletComponentScan(basePackages = "com.example.boot")
@SpringBootApplication
public class BootWeb01Application {

    public static void main(String[] args) {
        SpringApplication.run(BootWeb01Application.class, args);
    }

}
